package com.gency.subscribe.model.system;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author 马行空
 * @since 2018-06-12
 */
@TableName("sys_map_info")
public class MapInfo extends Model<MapInfo> {


    private static final long serialVersionUID = 1L;

    /**
     * 数据Id
     */
	private Long id;
	
	@TableField(exist=false)
	private String ids;
    /**
     * 行政区域名称
     */
	private String city_name;
    /**
     * 行政区域编码
     */
	@TableField("parentCode")
	private String parentCode;
    /**
     * 行政区域等级
     */
	private Integer level;
    /**
     * 城市编码
     */
	private String citycode;
	private String adcode;
    /**
     * 精度
     */
	private String lng;
    /**
     * 维度
     */
	private String lat;
	private String pinyin;
    /**
     * 创建时间
     */
	@TableField("createTime")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCity_name() {
		return city_name;
	}

	public void setCity_name(String city_name) {
		this.city_name = city_name;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getCitycode() {
		return citycode;
	}

	public void setCitycode(String citycode) {
		this.citycode = citycode;
	}

	public String getAdcode() {
		return adcode;
	}

	public void setAdcode(String adcode) {
		this.adcode = adcode;
	}

	public String getLng() {
		return lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
	

	public String getIds() {
		return id.toString();
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	@Override
	public String toString() {
		return "Map_info{" +
			"id=" + id +
			", city_name=" + city_name +
			", parentCode=" + parentCode +
			", level=" + level +
			", citycode=" + citycode +
			", adcode=" + adcode +
			", lng=" + lng +
			", lat=" + lat +
			", pinyin=" + pinyin +
			", createTime=" + createTime +
			"}";
	}
}
